<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Kinetis Bootloader Host: ELFSourceFile.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="nxp_logo_small.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Kinetis Bootloader Host
   &#160;<span id="projectnumber">2.0.0</span>
   </div>
   <div id="projectbrief">Host Tools for Kinetis devices</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Introduction</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('src_2blfwk_2_e_l_f_source_file_8h_source.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">src/blfwk/ELFSourceFile.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2013-14, Freescale Semiconductor, Inc.</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> * All rights reserved.</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * Redistribution and use in source and binary forms, with or without modification,</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * are permitted provided that the following conditions are met:</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * o Redistributions of source code must retain the above copyright notice, this list</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> *   of conditions and the following disclaimer.</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * o Redistributions in binary form must reproduce the above copyright notice, this</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> *   list of conditions and the following disclaimer in the documentation and/or</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *   other materials provided with the distribution.</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * o Neither the name of Freescale Semiconductor, Inc. nor the names of its</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> *   contributors may be used to endorse or promote products derived from this</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> *   software without specific prior written permission.</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; AND</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="comment"> * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="comment"> * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="comment"> * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="comment"> * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment"> * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="preprocessor">#if !defined(_ELFSourceFile_h_)</span></div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#define _ELFSourceFile_h_</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;<span class="preprocessor">#include &quot;SourceFile.h&quot;</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#include &quot;StELFFile.h&quot;</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="preprocessor">#include &quot;smart_ptr.h&quot;</span></div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#include &quot;DataSource.h&quot;</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;<span class="preprocessor">#include &quot;DataTarget.h&quot;</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="preprocessor">#include &quot;ELF.h&quot;</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespaceblfwk.html">blfwk</a></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;{</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="keyword">enum</span> elf_toolset_t</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;{</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;    kUnknownToolset, </div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;    kGHSToolset,     </div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;    kGCCToolset,     </div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    kADSToolset      </div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;};</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="keyword">enum</span> secinfo_clear_t</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;{</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="comment">// Default value for the .secinfo action.</span></div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;    kSecinfoDefault,</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    kSecinfoIgnore,</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    kSecinfoROMClear,</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;    kSecinfoCStartupClear</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;};</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="classblfwk_1_1_e_l_f_source_file.html">   72</a></span>&#160;<span class="keyword">class </span><a class="code" href="classblfwk_1_1_e_l_f_source_file.html">ELFSourceFile</a> : <span class="keyword">public</span> <a class="code" href="classblfwk_1_1_source_file.html">SourceFile</a></div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;{</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    <a class="code" href="classblfwk_1_1_e_l_f_source_file.html#a8d2cfcb0e20859c11bb614f97d33491e">ELFSourceFile</a>(<span class="keyword">const</span> std::string &amp;path);</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_e_l_f_source_file.html#a13487ebed26dc3407a1ed88cc3b02afa">~ELFSourceFile</a>();</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;    <span class="keyword">static</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_e_l_f_source_file.html#a3c85576fc0de06a78a755e43d77cff45">isELFFile</a>(std::istream &amp;stream);</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classblfwk_1_1_e_l_f_source_file.html#a4c7b543224830d2f3cb084dc80f28bca">open</a>();</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="classblfwk_1_1_e_l_f_source_file.html#a5e506a35992cd35cb976af46b051412f">close</a>();</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> supportsNamedSections()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> supportsNamedSymbols()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_data_source.html">DataSource</a> *<a class="code" href="classblfwk_1_1_e_l_f_source_file.html#a4d16cefc2d6756bf4e037e87c8f6b2a7">createDataSource</a>();</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_data_source.html">DataSource</a> *<a class="code" href="classblfwk_1_1_e_l_f_source_file.html#a4d16cefc2d6756bf4e037e87c8f6b2a7">createDataSource</a>(<a class="code" href="classblfwk_1_1_string_matcher.html">StringMatcher</a> &amp;matcher);</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;    <span class="comment">//         baseAddress</span></div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_data_source.html">DataSource</a> *<a class="code" href="classblfwk_1_1_e_l_f_source_file.html#a4d16cefc2d6756bf4e037e87c8f6b2a7">createDataSource</a>(<span class="keyword">const</span> std::vector&lt;uint32_t&gt; &amp;baseAddress, <span class="keywordtype">bool</span> match);</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_e_l_f_source_file.html#aca87a9dce73b0e08858673bd144c0388">hasEntryPoint</a>();</div><div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    <span class="keyword">virtual</span> uint32_t <a class="code" href="classblfwk_1_1_e_l_f_source_file.html#a4b376cf817a8d615fc763c331f543184">getEntryPointAddress</a>();</div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_data_target.html">DataTarget</a> *<a class="code" href="classblfwk_1_1_e_l_f_source_file.html#ac993663910459963f652a9f161a74594">createDataTargetForSection</a>(<span class="keyword">const</span> std::string &amp;section);</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;    <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_data_target.html">DataTarget</a> *<a class="code" href="classblfwk_1_1_e_l_f_source_file.html#aec582e3a55edc5a9f1eeb6217a190348">createDataTargetForSymbol</a>(<span class="keyword">const</span> std::string &amp;symbol);</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;</div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_e_l_f_source_file.html#a2e132d139857a70b65246b57183a9269">hasSymbol</a>(<span class="keyword">const</span> std::string &amp;name);</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;    <span class="keyword">virtual</span> uint32_t <a class="code" href="classblfwk_1_1_e_l_f_source_file.html#a6eebc19e0cb61d9dcb51f30f7d95f22f">getSymbolValue</a>(<span class="keyword">const</span> std::string &amp;name);</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div><div class="line"><a name="l00137"></a><span class="lineno">  137</span>&#160;    <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_e_l_f_source_file.html#ae37ed715d8d53960a748bc73d63081b2">getSymbolSize</a>(<span class="keyword">const</span> std::string &amp;name);</div><div class="line"><a name="l00139"></a><span class="lineno">  139</span>&#160;</div><div class="line"><a name="l00141"></a><span class="lineno">  141</span>&#160;</div><div class="line"><a name="l00142"></a><span class="lineno">  142</span>&#160;    <a class="code" href="class_st_e_l_f_file.html">StELFFile</a> *<a class="code" href="classblfwk_1_1_e_l_f_source_file.html#a28dd25198183f158c63f44b7d4fbcb9a">getELFFile</a>() { <span class="keywordflow">return</span> <a class="code" href="classblfwk_1_1_e_l_f_source_file.html#a02ae32ae5cb6af0a1ca1a10c3a8505eb">m_file</a>; }</div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_e_l_f_source_file.html#ae1d5eb50d5b22775659d67e1bf5575b6">lookupSymbol</a>(<span class="keyword">const</span> std::string &amp;name, <a class="code" href="struct_elf32___sym.html">Elf32_Sym</a> &amp;info);</div><div class="line"><a name="l00147"></a><span class="lineno">  147</span>&#160;</div><div class="line"><a name="l00148"></a><span class="lineno">  148</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00149"></a><span class="lineno"><a class="line" href="classblfwk_1_1_e_l_f_source_file.html#a02ae32ae5cb6af0a1ca1a10c3a8505eb">  149</a></span>&#160;    <a class="code" href="group__smart__pointer.html">smart_ptr&lt;StELFFile&gt;</a> <a class="code" href="classblfwk_1_1_e_l_f_source_file.html#a02ae32ae5cb6af0a1ca1a10c3a8505eb">m_file</a>;     </div><div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="classblfwk_1_1_e_l_f_source_file.html#af0bbce398d83eb6c3384cc37525a6366">  150</a></span>&#160;    elf_toolset_t <a class="code" href="classblfwk_1_1_e_l_f_source_file.html#af0bbce398d83eb6c3384cc37525a6366">m_toolset</a>;         </div><div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="classblfwk_1_1_e_l_f_source_file.html#a03ff2345638ed139e9b4ba365d391915">  151</a></span>&#160;    secinfo_clear_t <a class="code" href="classblfwk_1_1_e_l_f_source_file.html#a03ff2345638ed139e9b4ba365d391915">m_secinfoOption</a>; </div><div class="line"><a name="l00152"></a><span class="lineno">  152</span>&#160;</div><div class="line"><a name="l00153"></a><span class="lineno">  153</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;    elf_toolset_t <a class="code" href="classblfwk_1_1_e_l_f_source_file.html#a9833b113021cae9d480ebf4a6211323f">readToolsetOption</a>();</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;</div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;    secinfo_clear_t <a class="code" href="classblfwk_1_1_e_l_f_source_file.html#a74c60216d716cfcfb9224fbad9f2c990">readSecinfoClearOption</a>();</div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;</div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<span class="keyword">protected</span>:</div><div class="line"><a name="l00176"></a><span class="lineno"><a class="line" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html">  176</a></span>&#160;    <span class="keyword">class </span><a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html">ELFDataSource</a> : <span class="keyword">public</span> <a class="code" href="classblfwk_1_1_data_source.html">DataSource</a></div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;    {</div><div class="line"><a name="l00178"></a><span class="lineno">  178</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00182"></a><span class="lineno"><a class="line" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html">  182</a></span>&#160;        <span class="keyword">class </span><a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html">ProgBitsSegment</a> : <span class="keyword">public</span> <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html">DataSource::Segment</a></div><div class="line"><a name="l00183"></a><span class="lineno">  183</span>&#160;        {</div><div class="line"><a name="l00184"></a><span class="lineno">  184</span>&#160;        <span class="keyword">public</span>:</div><div class="line"><a name="l00185"></a><span class="lineno">  185</span>&#160;            <a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html">ProgBitsSegment</a>(<a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html">ELFDataSource</a> &amp;source, <a class="code" href="class_st_e_l_f_file.html">StELFFile</a> *elf, <span class="keywordtype">unsigned</span> index);</div><div class="line"><a name="l00186"></a><span class="lineno">  186</span>&#160;</div><div class="line"><a name="l00187"></a><span class="lineno">  187</span>&#160;            <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#ab0c90050602a06674ec013d937dbe446">getData</a>(<span class="keywordtype">unsigned</span> offset, <span class="keywordtype">unsigned</span> maxBytes, uint8_t *buffer);</div><div class="line"><a name="l00188"></a><span class="lineno">  188</span>&#160;            <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#a8fb913927c47f0b1e3f61467616b39a5">getLength</a>();</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;</div><div class="line"><a name="l00190"></a><span class="lineno"><a class="line" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#a34b94e4f408d2e16b357c6be9902f59a">  190</a></span>&#160;            <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#a34b94e4f408d2e16b357c6be9902f59a">hasNaturalLocation</a>() { <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div><div class="line"><a name="l00191"></a><span class="lineno">  191</span>&#160;            <span class="keyword">virtual</span> uint32_t <a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#afc62b0e542f31488d24b4baa8555c914">getBaseAddress</a>();</div><div class="line"><a name="l00192"></a><span class="lineno">  192</span>&#160;</div><div class="line"><a name="l00193"></a><span class="lineno">  193</span>&#160;        <span class="keyword">protected</span>:</div><div class="line"><a name="l00194"></a><span class="lineno"><a class="line" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#a3619b926da11ef46dee5634eaa4e8d45">  194</a></span>&#160;            <a class="code" href="class_st_e_l_f_file.html">StELFFile</a> *<a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#a3619b926da11ef46dee5634eaa4e8d45">m_elf</a>;        </div><div class="line"><a name="l00195"></a><span class="lineno"><a class="line" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#a3d0585d0d2c703f578737c6ef661a631">  195</a></span>&#160;            <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#a3d0585d0d2c703f578737c6ef661a631">m_sectionIndex</a>; </div><div class="line"><a name="l00196"></a><span class="lineno">  196</span>&#160;        };</div><div class="line"><a name="l00197"></a><span class="lineno">  197</span>&#160;</div><div class="line"><a name="l00204"></a><span class="lineno"><a class="line" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html">  204</a></span>&#160;        <span class="keyword">class </span><a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html">NoBitsSegment</a> : <span class="keyword">public</span> <a class="code" href="classblfwk_1_1_data_source_1_1_pattern_segment.html">DataSource::PatternSegment</a></div><div class="line"><a name="l00205"></a><span class="lineno">  205</span>&#160;        {</div><div class="line"><a name="l00206"></a><span class="lineno">  206</span>&#160;        <span class="keyword">public</span>:</div><div class="line"><a name="l00207"></a><span class="lineno">  207</span>&#160;            <a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html">NoBitsSegment</a>(<a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html">ELFDataSource</a> &amp;source, <a class="code" href="class_st_e_l_f_file.html">StELFFile</a> *elf, <span class="keywordtype">unsigned</span> index);</div><div class="line"><a name="l00208"></a><span class="lineno">  208</span>&#160;</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;            <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#a8fb913927c47f0b1e3f61467616b39a5">getLength</a>();</div><div class="line"><a name="l00210"></a><span class="lineno">  210</span>&#160;</div><div class="line"><a name="l00211"></a><span class="lineno"><a class="line" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html#ad660deb2d1aea10bb4c23f9f8c59a83a">  211</a></span>&#160;            <span class="keyword">virtual</span> <span class="keywordtype">bool</span> <a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html#ad660deb2d1aea10bb4c23f9f8c59a83a">hasNaturalLocation</a>() { <span class="keywordflow">return</span> <span class="keyword">true</span>; }</div><div class="line"><a name="l00212"></a><span class="lineno">  212</span>&#160;            <span class="keyword">virtual</span> uint32_t <a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#afc62b0e542f31488d24b4baa8555c914">getBaseAddress</a>();</div><div class="line"><a name="l00213"></a><span class="lineno">  213</span>&#160;</div><div class="line"><a name="l00214"></a><span class="lineno">  214</span>&#160;        <span class="keyword">protected</span>:</div><div class="line"><a name="l00215"></a><span class="lineno"><a class="line" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html#a73fe3b81e74cd4b3a3f16895912ccfd7">  215</a></span>&#160;            <a class="code" href="class_st_e_l_f_file.html">StELFFile</a> *<a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html#a73fe3b81e74cd4b3a3f16895912ccfd7">m_elf</a>;        </div><div class="line"><a name="l00216"></a><span class="lineno"><a class="line" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html#a51cbbfb8ad46fa0abf82ec70b43ce78a">  216</a></span>&#160;            <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html#a51cbbfb8ad46fa0abf82ec70b43ce78a">m_sectionIndex</a>; </div><div class="line"><a name="l00217"></a><span class="lineno">  217</span>&#160;        };</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;</div><div class="line"><a name="l00219"></a><span class="lineno">  219</span>&#160;    <span class="keyword">public</span>:</div><div class="line"><a name="l00221"></a><span class="lineno"><a class="line" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#ab00bf4f9ccb5946d645f46970341ebd8">  221</a></span>&#160;        <a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#ab00bf4f9ccb5946d645f46970341ebd8">ELFDataSource</a>(<a class="code" href="class_st_e_l_f_file.html">StELFFile</a> *elf)</div><div class="line"><a name="l00222"></a><span class="lineno">  222</span>&#160;            : <a class="code" href="classblfwk_1_1_data_source.html">DataSource</a>()</div><div class="line"><a name="l00223"></a><span class="lineno">  223</span>&#160;            , <a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#a3619b926da11ef46dee5634eaa4e8d45">m_elf</a>(elf)</div><div class="line"><a name="l00224"></a><span class="lineno">  224</span>&#160;        {</div><div class="line"><a name="l00225"></a><span class="lineno">  225</span>&#160;        }</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;</div><div class="line"><a name="l00228"></a><span class="lineno">  228</span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a516924dd7eb8a08dced8ff2c87bb754d">~ELFDataSource</a>();</div><div class="line"><a name="l00229"></a><span class="lineno">  229</span>&#160;</div><div class="line"><a name="l00231"></a><span class="lineno"><a class="line" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a7b136eb0e6628342a5dcffc28806d8d5">  231</a></span>&#160;        <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a7b136eb0e6628342a5dcffc28806d8d5">setSecinfoOption</a>(secinfo_clear_t option) { m_secinfoOption = option; }</div><div class="line"><a name="l00233"></a><span class="lineno">  233</span>&#160;        <span class="keywordtype">void</span> <a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#ac6874a986382fab432109f173cc34f61">addSection</a>(<span class="keywordtype">unsigned</span> sectionIndex);</div><div class="line"><a name="l00234"></a><span class="lineno">  234</span>&#160;</div><div class="line"><a name="l00236"></a><span class="lineno"><a class="line" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#aa2ec683e8332e5617fc3468aaf2aa907">  236</a></span>&#160;        <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#aa2ec683e8332e5617fc3468aaf2aa907">getSegmentCount</a>() { <span class="keywordflow">return</span> (<span class="keywordtype">unsigned</span>)<a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a05f50f5abfca5fc1e2e577f72bb81225">m_segments</a>.size(); }</div><div class="line"><a name="l00238"></a><span class="lineno"><a class="line" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#af3e4b75dd66b95de30669665e53345d1">  238</a></span>&#160;        <span class="keyword">virtual</span> <a class="code" href="classblfwk_1_1_data_source_1_1_segment.html">DataSource::Segment</a> *<a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#af3e4b75dd66b95de30669665e53345d1">getSegmentAt</a>(<span class="keywordtype">unsigned</span> index) { <span class="keywordflow">return</span> <a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a05f50f5abfca5fc1e2e577f72bb81225">m_segments</a>[index]; }</div><div class="line"><a name="l00239"></a><span class="lineno">  239</span>&#160;    <span class="keyword">protected</span>:</div><div class="line"><a name="l00240"></a><span class="lineno"><a class="line" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a903a2b75f3843fd0dc815198743fe228">  240</a></span>&#160;        <a class="code" href="class_st_e_l_f_file.html">StELFFile</a> *<a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a903a2b75f3843fd0dc815198743fe228">m_elf</a>;                </div><div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a6acda38846a6dc9a7a9d2033fc1e3c3d">  241</a></span>&#160;        secinfo_clear_t <a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a6acda38846a6dc9a7a9d2033fc1e3c3d">m_secinfoOption</a>; </div><div class="line"><a name="l00242"></a><span class="lineno">  242</span>&#160;</div><div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#aee8eeb962c432251c9d99513fc0e2470">  243</a></span>&#160;        <span class="keyword">typedef</span> std::vector&lt;DataSource::Segment *&gt; <a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#aee8eeb962c432251c9d99513fc0e2470">segment_vector_t</a>; </div><div class="line"><a name="l00244"></a><span class="lineno"><a class="line" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a05f50f5abfca5fc1e2e577f72bb81225">  244</a></span>&#160;        segment_vector_t <a class="code" href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a05f50f5abfca5fc1e2e577f72bb81225">m_segments</a>;                                 </div><div class="line"><a name="l00245"></a><span class="lineno">  245</span>&#160;    };</div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;};</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;}; <span class="comment">// namespace blfwk</span></div><div class="line"><a name="l00249"></a><span class="lineno">  249</span>&#160;</div><div class="line"><a name="l00250"></a><span class="lineno">  250</span>&#160;<span class="preprocessor">#endif // _ELFSourceFile_h_</span></div><div class="ttc" id="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_html_a516924dd7eb8a08dced8ff2c87bb754d"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a516924dd7eb8a08dced8ff2c87bb754d">blfwk::ELFSourceFile::ELFDataSource::~ELFDataSource</a></div><div class="ttdeci">virtual ~ELFDataSource()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ELFSourceFile.cpp:493</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment_html"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html">blfwk::ELFSourceFile::ELFDataSource::NoBitsSegment</a></div><div class="ttdoc">Represents one named #SHT_NOBITS section within the ELF file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ELFSourceFile.h:204</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_html_a28dd25198183f158c63f44b7d4fbcb9a"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file.html#a28dd25198183f158c63f44b7d4fbcb9a">blfwk::ELFSourceFile::getELFFile</a></div><div class="ttdeci">StELFFile * getELFFile()</div><div class="ttdoc">Returns the underlying StELFFile object. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ELFSourceFile.h:143</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_html_a903a2b75f3843fd0dc815198743fe228"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a903a2b75f3843fd0dc815198743fe228">blfwk::ELFSourceFile::ELFDataSource::m_elf</a></div><div class="ttdeci">StELFFile * m_elf</div><div class="ttdoc">The ELF file parser. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ELFSourceFile.h:240</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_html"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html">blfwk::ELFSourceFile::ELFDataSource</a></div><div class="ttdoc">A data source with ELF file sections as the contents. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ELFSourceFile.h:176</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment_html_a34b94e4f408d2e16b357c6be9902f59a"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#a34b94e4f408d2e16b357c6be9902f59a">blfwk::ELFSourceFile::ELFDataSource::ProgBitsSegment::hasNaturalLocation</a></div><div class="ttdeci">virtual bool hasNaturalLocation()</div><div class="ttdoc">Returns whether the segment has an associated address. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ELFSourceFile.h:190</div></div>
<div class="ttc" id="namespaceblfwk_html"><div class="ttname"><a href="namespaceblfwk.html">blfwk</a></div><div class="ttdef"><b>Definition:</b> BlfwkErrors.h:16</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_html_af0bbce398d83eb6c3384cc37525a6366"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file.html#af0bbce398d83eb6c3384cc37525a6366">blfwk::ELFSourceFile::m_toolset</a></div><div class="ttdeci">elf_toolset_t m_toolset</div><div class="ttdoc">Toolset that produced the ELF file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ELFSourceFile.h:150</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_html_aa2ec683e8332e5617fc3468aaf2aa907"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#aa2ec683e8332e5617fc3468aaf2aa907">blfwk::ELFSourceFile::ELFDataSource::getSegmentCount</a></div><div class="ttdeci">virtual unsigned getSegmentCount()</div><div class="ttdoc">Returns the number of segments in the source. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ELFSourceFile.h:236</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_html_a9833b113021cae9d480ebf4a6211323f"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file.html#a9833b113021cae9d480ebf4a6211323f">blfwk::ELFSourceFile::readToolsetOption</a></div><div class="ttdeci">elf_toolset_t readToolsetOption()</div><div class="ttdoc">Parses the toolset option value. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ELFSourceFile.cpp:122</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_html_ac6874a986382fab432109f173cc34f61"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#ac6874a986382fab432109f173cc34f61">blfwk::ELFSourceFile::ELFDataSource::addSection</a></div><div class="ttdeci">void addSection(unsigned sectionIndex)</div><div class="ttdoc">Adds the ELF section at position sectionIndex to the data source. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ELFSourceFile.cpp:512</div></div>
<div class="ttc" id="group__smart__pointer_html"><div class="ttname"><a href="group__smart__pointer.html">smart_ptr&lt; StELFFile &gt;</a></div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment_html_a51cbbfb8ad46fa0abf82ec70b43ce78a"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html#a51cbbfb8ad46fa0abf82ec70b43ce78a">blfwk::ELFSourceFile::ELFDataSource::NoBitsSegment::m_sectionIndex</a></div><div class="ttdeci">unsigned m_sectionIndex</div><div class="ttdoc">The index of the section this segment represents. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ELFSourceFile.h:216</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_html_a03ff2345638ed139e9b4ba365d391915"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file.html#a03ff2345638ed139e9b4ba365d391915">blfwk::ELFSourceFile::m_secinfoOption</a></div><div class="ttdeci">secinfo_clear_t m_secinfoOption</div><div class="ttdoc">How to deal with the .secinfo section. Ignored if the toolset is not GHS. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ELFSourceFile.h:151</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_html_a7b136eb0e6628342a5dcffc28806d8d5"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a7b136eb0e6628342a5dcffc28806d8d5">blfwk::ELFSourceFile::ELFDataSource::setSecinfoOption</a></div><div class="ttdeci">void setSecinfoOption(secinfo_clear_t option)</div><div class="ttdoc">Set the option to control .secinfo usage. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ELFSourceFile.h:231</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment_html_a73fe3b81e74cd4b3a3f16895912ccfd7"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html#a73fe3b81e74cd4b3a3f16895912ccfd7">blfwk::ELFSourceFile::ELFDataSource::NoBitsSegment::m_elf</a></div><div class="ttdeci">StELFFile * m_elf</div><div class="ttdoc">The format parser instance for this ELF file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ELFSourceFile.h:215</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_html_ab00bf4f9ccb5946d645f46970341ebd8"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#ab00bf4f9ccb5946d645f46970341ebd8">blfwk::ELFSourceFile::ELFDataSource::ELFDataSource</a></div><div class="ttdeci">ELFDataSource(StELFFile *elf)</div><div class="ttdoc">Default constructor. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ELFSourceFile.h:221</div></div>
<div class="ttc" id="classblfwk_1_1_data_target_html"><div class="ttname"><a href="classblfwk_1_1_data_target.html">blfwk::DataTarget</a></div><div class="ttdoc">Abstract base class for the target address or range of data. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataTarget.h:57</div></div>
<div class="ttc" id="struct_elf32___sym_html"><div class="ttname"><a href="struct_elf32___sym.html">Elf32_Sym</a></div><div class="ttdoc">ELF symbol table entry. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/ELF.h:277</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment_html_ab0c90050602a06674ec013d937dbe446"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#ab0c90050602a06674ec013d937dbe446">blfwk::ELFSourceFile::ELFDataSource::ProgBitsSegment::getData</a></div><div class="ttdeci">virtual unsigned getData(unsigned offset, unsigned maxBytes, uint8_t *buffer)</div><div class="ttdoc">Gets all or a portion of the segment&amp;#39;s data. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ELFSourceFile.cpp:587</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_html_a5e506a35992cd35cb976af46b051412f"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file.html#a5e506a35992cd35cb976af46b051412f">blfwk::ELFSourceFile::close</a></div><div class="ttdeci">virtual void close()</div><div class="ttdoc">Closes the file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ELFSourceFile.cpp:115</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_html_a02ae32ae5cb6af0a1ca1a10c3a8505eb"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file.html#a02ae32ae5cb6af0a1ca1a10c3a8505eb">blfwk::ELFSourceFile::m_file</a></div><div class="ttdeci">smart_ptr&lt; StELFFile &gt; m_file</div><div class="ttdoc">Parser for the ELF file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ELFSourceFile.h:149</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_html_aee8eeb962c432251c9d99513fc0e2470"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#aee8eeb962c432251c9d99513fc0e2470">blfwk::ELFSourceFile::ELFDataSource::segment_vector_t</a></div><div class="ttdeci">std::vector&lt; DataSource::Segment * &gt; segment_vector_t</div><div class="ttdoc">A list of segment instances. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ELFSourceFile.h:243</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_html_a13487ebed26dc3407a1ed88cc3b02afa"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file.html#a13487ebed26dc3407a1ed88cc3b02afa">blfwk::ELFSourceFile::~ELFSourceFile</a></div><div class="ttdeci">virtual ~ELFSourceFile()</div><div class="ttdoc">Destructor. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ELFSourceFile.cpp:63</div></div>
<div class="ttc" id="classblfwk_1_1_source_file_html"><div class="ttname"><a href="classblfwk_1_1_source_file.html">blfwk::SourceFile</a></div><div class="ttdoc">Abstract base class for a source file containing executable code. </div><div class="ttdef"><b>Definition:</b> src/blfwk/SourceFile.h:56</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment_html_afc62b0e542f31488d24b4baa8555c914"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#afc62b0e542f31488d24b4baa8555c914">blfwk::ELFSourceFile::ELFDataSource::ProgBitsSegment::getBaseAddress</a></div><div class="ttdeci">virtual uint32_t getBaseAddress()</div><div class="ttdoc">Returns the address associated with the segment. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ELFSourceFile.cpp:609</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_html_a2e132d139857a70b65246b57183a9269"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file.html#a2e132d139857a70b65246b57183a9269">blfwk::ELFSourceFile::hasSymbol</a></div><div class="ttdeci">virtual bool hasSymbol(const std::string &amp;name)</div><div class="ttdoc">Returns whether a symbol exists in the source file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ELFSourceFile.cpp:419</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_html_af3e4b75dd66b95de30669665e53345d1"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#af3e4b75dd66b95de30669665e53345d1">blfwk::ELFSourceFile::ELFDataSource::getSegmentAt</a></div><div class="ttdeci">virtual DataSource::Segment * getSegmentAt(unsigned index)</div><div class="ttdoc">Returns the segment at position index. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ELFSourceFile.h:238</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_html_ae1d5eb50d5b22775659d67e1bf5575b6"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file.html#ae1d5eb50d5b22775659d67e1bf5575b6">blfwk::ELFSourceFile::lookupSymbol</a></div><div class="ttdeci">bool lookupSymbol(const std::string &amp;name, Elf32_Sym &amp;info)</div><div class="ttdoc">Gets information about a symbol in the ELF file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ELFSourceFile.cpp:470</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment_html_a8fb913927c47f0b1e3f61467616b39a5"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#a8fb913927c47f0b1e3f61467616b39a5">blfwk::ELFSourceFile::ELFDataSource::ProgBitsSegment::getLength</a></div><div class="ttdeci">virtual unsigned getLength()</div><div class="ttdoc">Gets the length of the segment&amp;#39;s data. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ELFSourceFile.cpp:603</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_html_a05f50f5abfca5fc1e2e577f72bb81225"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a05f50f5abfca5fc1e2e577f72bb81225">blfwk::ELFSourceFile::ELFDataSource::m_segments</a></div><div class="ttdeci">segment_vector_t m_segments</div><div class="ttdoc">The segments of this data source. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ELFSourceFile.h:244</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_html_a8d2cfcb0e20859c11bb614f97d33491e"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file.html#a8d2cfcb0e20859c11bb614f97d33491e">blfwk::ELFSourceFile::ELFSourceFile</a></div><div class="ttdeci">ELFSourceFile(const std::string &amp;path)</div><div class="ttdoc">Default constructor. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ELFSourceFile.cpp:56</div></div>
<div class="ttc" id="classblfwk_1_1_string_matcher_html"><div class="ttname"><a href="classblfwk_1_1_string_matcher.html">blfwk::StringMatcher</a></div><div class="ttdoc">Abstract interface class used to select strings by name. </div><div class="ttdef"><b>Definition:</b> src/blfwk/StringMatcher.h:40</div></div>
<div class="ttc" id="classblfwk_1_1_data_source_1_1_segment_html"><div class="ttname"><a href="classblfwk_1_1_data_source_1_1_segment.html">blfwk::DataSource::Segment</a></div><div class="ttdoc">Discrete, contiguous part of the source&amp;#39;s data. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:65</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment_html"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html">blfwk::ELFSourceFile::ELFDataSource::ProgBitsSegment</a></div><div class="ttdoc">Represents one named #SHT_PROGBITS section within the ELF file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ELFSourceFile.h:182</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_html_a74c60216d716cfcfb9224fbad9f2c990"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file.html#a74c60216d716cfcfb9224fbad9f2c990">blfwk::ELFSourceFile::readSecinfoClearOption</a></div><div class="ttdeci">secinfo_clear_t readSecinfoClearOption()</div><div class="ttdoc">Reads the secinfoClear option. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ELFSourceFile.cpp:169</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_html_ae37ed715d8d53960a748bc73d63081b2"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file.html#ae37ed715d8d53960a748bc73d63081b2">blfwk::ELFSourceFile::getSymbolSize</a></div><div class="ttdeci">virtual unsigned getSymbolSize(const std::string &amp;name)</div><div class="ttdoc">Returns the size of a symbol. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ELFSourceFile.cpp:454</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_html_a4b376cf817a8d615fc763c331f543184"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file.html#a4b376cf817a8d615fc763c331f543184">blfwk::ELFSourceFile::getEntryPointAddress</a></div><div class="ttdeci">virtual uint32_t getEntryPointAddress()</div><div class="ttdoc">Returns the entry point address. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ELFSourceFile.cpp:342</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment_html_a3619b926da11ef46dee5634eaa4e8d45"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#a3619b926da11ef46dee5634eaa4e8d45">blfwk::ELFSourceFile::ELFDataSource::ProgBitsSegment::m_elf</a></div><div class="ttdeci">StELFFile * m_elf</div><div class="ttdoc">The format parser instance for this ELF file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ELFSourceFile.h:194</div></div>
<div class="ttc" id="class_st_e_l_f_file_html"><div class="ttname"><a href="class_st_e_l_f_file.html">StELFFile</a></div><div class="ttdoc">Parser for Executable and Linking Format (ELF) files. </div><div class="ttdef"><b>Definition:</b> apps/elftosb/common/StELFFile.h:42</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_html"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file.html">blfwk::ELFSourceFile</a></div><div class="ttdoc">Executable and Loading Format (ELF) source file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ELFSourceFile.h:72</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_html_a3c85576fc0de06a78a755e43d77cff45"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file.html#a3c85576fc0de06a78a755e43d77cff45">blfwk::ELFSourceFile::isELFFile</a></div><div class="ttdeci">static bool isELFFile(std::istream &amp;stream)</div><div class="ttdoc">Identifies whether the stream contains an ELF file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ELFSourceFile.cpp:67</div></div>
<div class="ttc" id="classblfwk_1_1_data_source_html"><div class="ttname"><a href="classblfwk_1_1_data_source.html">blfwk::DataSource</a></div><div class="ttdoc">Abstract base class for data sources. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:56</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_html_a6acda38846a6dc9a7a9d2033fc1e3c3d"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source.html#a6acda38846a6dc9a7a9d2033fc1e3c3d">blfwk::ELFSourceFile::ELFDataSource::m_secinfoOption</a></div><div class="ttdeci">secinfo_clear_t m_secinfoOption</div><div class="ttdoc">How to deal with the .secinfo section. Ignored if the toolset is not GHS. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ELFSourceFile.h:241</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_html_ac993663910459963f652a9f161a74594"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file.html#ac993663910459963f652a9f161a74594">blfwk::ELFSourceFile::createDataTargetForSection</a></div><div class="ttdeci">virtual DataTarget * createDataTargetForSection(const std::string &amp;section)</div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ELFSourceFile.cpp:375</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment_html_a3d0585d0d2c703f578737c6ef661a631"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_prog_bits_segment.html#a3d0585d0d2c703f578737c6ef661a631">blfwk::ELFSourceFile::ELFDataSource::ProgBitsSegment::m_sectionIndex</a></div><div class="ttdeci">unsigned m_sectionIndex</div><div class="ttdoc">The index of the section this segment represents. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ELFSourceFile.h:195</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment_html_ad660deb2d1aea10bb4c23f9f8c59a83a"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file_1_1_e_l_f_data_source_1_1_no_bits_segment.html#ad660deb2d1aea10bb4c23f9f8c59a83a">blfwk::ELFSourceFile::ELFDataSource::NoBitsSegment::hasNaturalLocation</a></div><div class="ttdeci">virtual bool hasNaturalLocation()</div><div class="ttdoc">Pattern segments have no natural address. </div><div class="ttdef"><b>Definition:</b> src/blfwk/ELFSourceFile.h:211</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_html_aca87a9dce73b0e08858673bd144c0388"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file.html#aca87a9dce73b0e08858673bd144c0388">blfwk::ELFSourceFile::hasEntryPoint</a></div><div class="ttdeci">virtual bool hasEntryPoint()</div><div class="ttdoc">Returns true if an entry point was set in the file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ELFSourceFile.cpp:335</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_html_aec582e3a55edc5a9f1eeb6217a190348"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file.html#aec582e3a55edc5a9f1eeb6217a190348">blfwk::ELFSourceFile::createDataTargetForSymbol</a></div><div class="ttdeci">virtual DataTarget * createDataTargetForSymbol(const std::string &amp;symbol)</div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ELFSourceFile.cpp:393</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_html_a4c7b543224830d2f3cb084dc80f28bca"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file.html#a4c7b543224830d2f3cb084dc80f28bca">blfwk::ELFSourceFile::open</a></div><div class="ttdeci">virtual void open()</div><div class="ttdoc">Opens the file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ELFSourceFile.cpp:80</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_html_a6eebc19e0cb61d9dcb51f30f7d95f22f"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file.html#a6eebc19e0cb61d9dcb51f30f7d95f22f">blfwk::ELFSourceFile::getSymbolValue</a></div><div class="ttdeci">virtual uint32_t getSymbolValue(const std::string &amp;name)</div><div class="ttdoc">Returns the value of a symbol. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ELFSourceFile.cpp:425</div></div>
<div class="ttc" id="classblfwk_1_1_e_l_f_source_file_html_a4d16cefc2d6756bf4e037e87c8f6b2a7"><div class="ttname"><a href="classblfwk_1_1_e_l_f_source_file.html#a4d16cefc2d6756bf4e037e87c8f6b2a7">blfwk::ELFSourceFile::createDataSource</a></div><div class="ttdeci">virtual DataSource * createDataSource()</div><div class="ttdoc">Creates a data source from the entire file. </div><div class="ttdef"><b>Definition:</b> src/blfwk/src/ELFSourceFile.cpp:220</div></div>
<div class="ttc" id="classblfwk_1_1_data_source_1_1_pattern_segment_html"><div class="ttname"><a href="classblfwk_1_1_data_source_1_1_pattern_segment.html">blfwk::DataSource::PatternSegment</a></div><div class="ttdoc">This is a special type of segment containing a repeating pattern. </div><div class="ttdef"><b>Definition:</b> src/blfwk/DataSource.h:110</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_80fb9e53c172a775cab667063273d0e3.html">blfwk</a></li><li class="navelem"><b>ELFSourceFile.h</b></li>
    <li class="footer">Generated on Mon Mar 7 2016 16:49:49 for Kinetis Bootloader Host by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
